package com.jhd.jiangxi.util;

import android.content.Context;
import android.content.Intent;

public class ScanUtil {
    public static void powerOnScan(Context context) {
        Intent intent = new Intent("ACTION_BAR_SCANCFG");
        intent.putExtra("EXTRA_SCAN_POWER", 1);
        context.sendBroadcast(intent);
    }
    public static void powerOffScan(Context context) {
        Intent intent = new Intent("ACTION_BAR_SCANCFG");
        intent.putExtra("EXTRA_SCAN_POWER", 0);
        context.sendBroadcast(intent);
    }
    public static void stopScan(Context context) {
        Intent stopIntent = new Intent("nlscan.action.STOP_SCAN");
        context.sendBroadcast(stopIntent);
    }
}
